<?php
	//TuấnNK add (20080617_10h):
	//Các xử lý cho ajax:
	//echo basename($_SERVER['PHP_SELF']);

	require_once 'core/Debug.php'; //System Debug...
	require_once 'core/config.php';//System Config...
	
	require_once ROOT_PATH.'core/CGlobal.php';
	require_once ROOT_PATH.'core/DB.php';
	
	//Khởi tạo các biến hệ thống:
	global $server_list;
	CGlobal::$my_server=$server_list;
	unset($server_list);
	
	require_once ROOT_PATH.'core/AZLib.php';
	if(isset($_REQUEST['trigger']) && (int)$_REQUEST['trigger']==1){
		exit();
	}
	
	require_once ROOT_PATH.'core/System.php';
	require_once ROOT_PATH.'core/Url.php';
	
	// Disable ALL magic_quote
	set_magic_quotes_runtime(0);
	
	register_shutdown_function(array("DB","close"));
	
	$spam_id= (int)Url::get('spam_id',0);
	
	$spam=DB::select('spam_content',"id=$spam_id");
	
	if($spam)
		echo stripslashes($spam['content']);
?>